package com.ruoyi.system.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ExcelUtil {
    public static String formatLongToDateTime(Long time) {
        if (time == null) {
            return "";
        }
        time = time * 1000;
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(new Date(time));
    }
}
